<script>
export default {
  props: ['modelValue'],
  emits: ['update:modelValue'],
  computed: {
    flag:{
      get(){
        return this.modelValue
      },
      set(nv){
        this.$emit('update:modelValue',nv)
      }
    }
  }
}
</script>

<template>
  <el-dialog v-bind="$attrs" v-model="flag">
    <template #header>
     <span>新课程添加</span>
    </template>


    <template #footer>
      <div class="dialog-footer">
        <el-button @click="$emit('update:modelValue',false)" >取消</el-button>
        <el-button type="primary" >
         添加
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>


